﻿using System.Collections.Generic;
using System.Web.Mvc;
using ABC.Domain.Entities;
using ABC.Domain.Enums;

namespace ABC.Controllers.ViewModels.My.Partners.Admin
{
    public class AddPartnerViewModel : BaseViewModel
    {
        public string Id { get; set; }

        public string Name { get; set; }

        public string Type { get; set; }

        public List<SelectListItem> ListForType { get; set; }

        public string Avatar { get; set; }

        public string FoundationYear { get; set; }

        public string Phone { get; set; }

        public string Fax { get; set; }

        public string FaxDob { get; set; }

        public string Website { get; set; }

        public string Email { get; set; }

        public string Socnetwork { get; set; }

        public string TypeSocnetwork { get; set; }

        public List<SelectListItem> ListForSocnetwork { get; set; }

        public string FullName { get; set; }

        public string TypeOwnership { get; set; }

        public List<SelectListItem> ListForTypeOwnership { get; set; }

        public string FaxRequisite { get; set; }

        public string PhoneRequisite { get; set; }

        public string JuridicalAddress { get; set; }

        public string ActualAddress { get; set; }

        public string Inn { get; set; }
        
        public string Kpp { get; set; }
        
        public string Okpo { get; set; }
        
        public string PaymentAccount { get; set; }
        
        public string CorrespondentAccount { get; set; }
        
        public string Bik { get; set; }

        public string Offices { get; set; }

        public List<EditProduct> Products { get; set; }

        public int PageNumber { get; set; }

        public int PageCount { get; set; }

        public int PageSize { get; set; }

        public List<SelectListItem> ListForPageSize { get; set; }

        public int PageNumberProducts { get; set; }

        public int PageCountProducts { get; set; }

        public int PPageSize { get; set; }

        public AddPartnerViewModel()
        {
            ListForType = new List<SelectListItem>
                              {
                                  new SelectListItem {Text = "Страховая компания", Value = "Страховая компания"},
                                  new SelectListItem {Text = "Банк", Value = "Банк"},
                                  new SelectListItem {Text = "Автосервис", Value = "Автосервис"},
                                  new SelectListItem {Text = "СТОА", Value = "СТОА"}
                              };
            ListForSocnetwork = new List<SelectListItem>
                                    {
                                        new SelectListItem
                                            {Text = "Вконтакте", Value = SocialNetworkType.Вконтакте.ToString()},
                                        new SelectListItem
                                            {Text = "Одноклассники", Value = SocialNetworkType.Одноклассники.ToString()},
                                        new SelectListItem
                                            {Text = "Мой Мир", Value = SocialNetworkType.МойМир.ToString()},
                                        new SelectListItem
                                            {Text = "Facebook", Value = SocialNetworkType.Facebook.ToString()},
                                        new SelectListItem
                                            {Text = "MySpace", Value = SocialNetworkType.MySpace.ToString()}
                                    };
            ListForTypeOwnership = new List<SelectListItem>
                                       {
                                           new SelectListItem {Text = "ООО", Value = "ООО"},
                                           new SelectListItem {Text = "ОАО", Value = "ОАО"},
                                           new SelectListItem {Text = "ЗАО", Value = "ЗАО"},
                                           new SelectListItem {Text = "ИП", Value = "ИП"}
                                       };
            ListForPageSize = new List<SelectListItem>
                                  {
                                      new SelectListItem {Text = "15", Value = "15"},
                                      new SelectListItem {Value = "30", Text = "30"},
                                      new SelectListItem {Text = "50", Value = "50"}
                                  };
            Products = new List<EditProduct>();
        }
    }


}
